<script type="text/javascript">
<!--
seajs.use(['manage'], function (manage) {
	$(function(){
		manage.category();
	});
})
//-->
</script>
<?php

?>

<h3>类别管理</h3>
<div id="category_tree" class="ztree">

</div>


<?php
/*
 $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
));
*/
 ?>
 
 <hr />
 <div>
 <input type="button" class="btn addNode" add_type="child" value="添加子类别" />
 </div>

 <input type="button" value="保存" id="saveCateList" class="btn" />
 
<!-- dialog add category  -->
 <div class="modal hide fade" id="myModal">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h3>添加[<span id='addParentName'></span>]</h3>
  </div>
  <div class="modal-body">
     <input type="text" id="newCategoryName" placeholder="请输入类别名称">
  </div>
  <div class="modal-footer">
    <a href="#" data-dismiss="modal" class="btn">关闭</a>
    <a href="#" id="saveAddCate" class="btn btn-primary">保存添加</a>
  </div>
</div>